package core;

import org.apache.camel.spring.Main;

/**
 * Created with IntelliJ IDEA.
 * User: Serg
 * Date: 19.07.12
 * Time: 20:50
 */
//Main class
public class CamelXmppServer {

    private CamelXmppServer() {
    }

    public static void main(String[] args) throws Exception {
        // Main makes it easier to run a Spring application
        Main main = new Main();
        // configure the location of the Spring XML file
        main.setApplicationContextUri("META-INF/spring/camel-context.xml");
        // enable hangup support allows Camel to detect when the JVM is terminated
        main.enableHangupSupport();
        // run and block until Camel is stopped (or JVM terminated)
        main.run();
    }

}
